import order from './order.component.vue';
import orderIndex from '../order.vue';
import statementList from '../statement/list.vue';
import statementChoice from '../statement/choice.vue';
import statementConfirm from '../statement/confirm.vue';
import statementDetail from '../statement/detail.vue';
import receiptList from '../receipt/list.vue';
import receiptDetail from '../receipt/detail.vue';
import acceptList from '../accept/list.vue';
import acceptDetail from '../accept/detail.vue';
import acceptSharDetail from '../accept/shardetail.vue';
import placeOrder from '../place/main.vue';
import placeChoice from '../place/choice.vue';
import placeChoiced from '../place/choicedgood.vue';
import address from '../place/addresslist.vue';
import addressForm from '../place/addressform.vue';
import quick from '../place/quick.vue';
import placeCusOrder from '../placeCus/main.vue';
import progressS from '../progress/progress.vue';
import progresslist from '../progress/progresslist.vue';
import newProgress from '../newProgress/Progress.vue';
import newProgresslist from '../newProgress/Progresslist.vue';
import analysis from '../analysis/analysis.vue';
import cusrank from '../analysis/cusrank.vue';
import crDetail from '../analysis/cusrankdetail.vue';
import fillrate from '../analysis/fillrate.vue';
import frDetail from '../analysis/fillratedetail.vue';
import erpList from '../erp/list.vue';
import erpDetail from '../erp/detail.vue';
import outStock from '../erp/outStock.vue';
import delivery from '../delivery/list.vue';
import deliveryDetail from '../delivery/detail.vue';
import sign from '../sign/list.vue';
import signDetail from '../sign/detail.vue';
import signDetail2 from '../sign/detail2.vue';
import driverList from '../driver/list.vue';
import driverDetail from '../driver/detail.vue';
import deliverygoodslist from '../driver/deliverygoodslist.vue';
import consignmentgoodslist from '../driver/consignmentgoodslist.vue';
import pickVehicle from '../driver/pick-vehicle.vue';
import pickBill from '../driver/pick-bill.vue';
import transVehicle from '../driver/trans-vehicle.vue';
import transBill from '../driver/trans-bill.vue';
import consign from '../driver/consign.vue';
import consignDone from '../driver/consign-done.vue';
import doneBill from '../driver/done-bill.vue';
import doneDetail from '../driver/done-detail.vue';
import auditorlist from '../auditor/list.vue';
import auditordetail from '../auditor/detail.vue';
import companylist from '../company/list.vue';
// import companyguoyao from '../company/guoyao.vue';
import companydetail from '../company/detail.vue';
import appointList from '../appointment/list.vue';
import appointDetail from '../appointment/detail.vue';
import appointBillDetail from '../appointment/billdetail.vue';
import choiceMan from '../choiceMan/list.vue';
import choiceManRole from '../choiceMan/rolelist.vue';
import choiceForm from '../choiceMan/choiceform.vue'
import seachGoods from '../seachgood/seachgood.vue';
import boardCarr from '../board/carrier.vue';
import boardCon from '../board/consignor.vue';
import consumablemateriaList from '../consumablemateria/list.vue';
import consumablemateriaDetail from '../consumablemateria/detial.vue';

import refundList from '../refund/RefundList.vue';
import refundOperate from '../refund/RefundOperate.vue';
import recordInvoice from '../refund/RecordInvoice.vue';
//库存
import stockList from '../stock/StockList.vue';

export const orderRoutes = [{
  path: '/order',
  component: order,
  // name: '订单',
  meta: {
    crumbName: '订单'
  },
  children: [
    {
      path: '',
      name: '订单',
      component: orderIndex
      // component:resolve => require(['../order.vue'],resolve)
    }, {
      path: 'statementList',
      name: '结算单 列表',
      component: statementList
    }, {
      path: 'statementChoice',
      name: '结算单入录',
      component: statementChoice
    }, {
      path: 'statementConfirm',
      name: '结算单确认',
      component: statementConfirm
    }, {
      path: 'statementDetail',
      name: '结算单详情',
      component: statementDetail
    }, {
      path: 'receiptList',
      name: '回单列表',
      component: receiptList
    }, {
      path: 'receiptDetail',
      name: '回单详情',
      component: receiptDetail
    }, {
      path: 'acceptList',
      name: '受理订单',
      component: acceptList
    }, {
      path: 'acceptDetail',
      name: '订单详情',
      component: acceptDetail
    }, {
      path: 'acceptSharDetail',
      name: '订单详情-分享',
      component: acceptSharDetail
    }, {
      path: 'placeOrder',
      name: '代下订单',
      component: placeOrder
    }, {
      path: 'placeChoice',
      name: '订单-选商品',
      component: placeChoice
    }, {
      path: 'placeChoiced',
      name: '已选商品',
      component: placeChoiced
    }, {
      path: 'address',
      name: '收货地址',
      component: address
    }, {
      path: 'addressForm',
      name: '地址管理',
      component: addressForm
    }, {
      path: 'quick',
      name: '快速下单',
      component: quick
    }, {
      path: 'progress',
      name: '物流状态跟踪',
      component: progressS
    }, {
      path: 'newProgresslist',
      name: '订单跟踪列表',
      component: newProgresslist
    }, {
      path: 'newProgress',
      name: '物流状态跟踪',
      component: newProgress
    }, {
      path: 'progresslist',
      name: '订单跟踪列表',
      component: progresslist
    }, {
      path: 'analysis',
      name: '业务分析',
      component: analysis
    }, {
      path: 'cusrank',
      name: '排行榜',
      component: cusrank
    }, {
      path: 'crDetail',
      name: '排行榜-详情',
      component: crDetail
    }, {
      path: 'fillrate',
      name: '订单满足率',
      component: fillrate
    }, {
      path: 'frDetail',
      name: '订单满足率-详情',
      component: frDetail
    }, {
      path: 'erpList',
      name: '订单录入',
      component: erpList
    }, {
      path: 'erpDetail',
      name: '订单录入详情',
      component: erpDetail
    }, {
      path: 'outStock',
      name: '商品缺货',
      component: outStock
    }, {
      path: 'delivery',
      name: '出库订单',
      component: delivery
    }, {
      path: 'deliveryDetail',
      name: '出库订单详情',
      component: deliveryDetail
    }, {
      path: 'deliverygoodslist',
      name: '提货列表',
      component: deliverygoodslist
    }, {
      path: 'consignmentgoodslist',
      name: '交货列表',
      component: consignmentgoodslist
    }, {
      path: 'sign',
      name: '签收订单',
      component: sign
    }, {
      path: 'signDetail',
      name: '签收订单详情',
      component: signDetail
    }, {
      path: 'signDetail2',
      name: '签收订单提交',
      component: signDetail2
    }, {
      path: 'driverList',
      name: '配送订单',
      component: driverList
    }, {
      path: 'driverDetail',
      name: '配送订单详情',
      component: driverDetail
    }, {
      path: 'pickVehicle',
      name: '整车提货',
      component: pickVehicle
    }, {
      path: 'pickBill',
      name: '整单提货',
      component: pickBill
    }, {
      path: 'transVehicle',
      name: '整车中转',
      component: transVehicle
    }, {
      path: 'transBill',
      name: '整单中转',
      component: transBill
    }, {
      path: 'consign',
      name: '交货',
      component: consign
    }, {
      path: 'consignDone',
      name: '交货提交',
      component: consignDone
    }, {
      path: 'doneBill',
      name: '已完成订单',
      component: doneBill
    }, {
      path: 'doneDetail',
      name: '已完成订单详情',
      component: doneDetail
    }, {
      path: 'auditorlist',
      name: '订单列表',
      component: auditorlist
    }, {
      path: 'auditordetail',
      name: '订单详情-审核 ',
      component: auditordetail
    }, {
      path: 'companylist',
      name: '公司订单列表',
      component: companylist
    }, {
      path: 'companydetail',
      name: '公司订单详情',
      component: companydetail
    }, {
      path: 'appointList',
      name: '预约订单列表',
      component: appointList
    }, {
      path: 'appointDetail',
      name: '预约-订单详情',
      component: appointDetail
    }, {
      path: 'appointBillDetail',
      name: '预约-订单详情 ',
      component: appointBillDetail
    }, {
      path: 'choiceMan',
      name: '选择人员',
      component: choiceMan
    }, {
      path: 'choiceManRole',
      name: '选择角色',
      component: choiceManRole
    }, {
      path: 'choiceForm',
      name: '选择信息',
      component: choiceForm
    }, {
      path: 'boardCarr',
      name: '承运商物流总量',
      component: boardCarr
    }, {
      path: 'boardCon',
      name: '货主物流总量',
      component: boardCon
    }, {
      path: 'seachGoods',
      name: '商品搜索',
      component: seachGoods
    }, {
      path: 'placeCusOrder',
      name: '下订单 ',
      component: placeCusOrder
    },
    //库存
    {
      path: 'StockList',
      name: '库存查询 ',
      component: stockList
    },
    //要货单
    {
      path: 'consumablemateriaList',
      name: '要货单列表 ',
      component: consumablemateriaList
    },
    {
      path: 'consumablemateriaDetail',
      name: '要货单明细 ',
      component: consumablemateriaDetail
    },
    {
      path: 'refundList',
      name: '退货单列表',
      component: refundList
    },
    {
      path: 'refundOperate',
      name: '退货单详情',
      component: refundOperate
    },
    {
      path: 'recordInvoice',
      name: '退货单-录入发票',
      component: recordInvoice
    }
  ]
}]